表の利用<table border><tr><td>文字列</td></tr></table> <table width="表の横幅(ピクセル数又は比率%)"> <table align="位置(left,center,right)">表の内容</table> <th>文字列</th> <caption>文字列</caption> <bottom>文字列</bottom> (表の下に表示) <td height="セルの高さ(ピクセル数)">文字列</td> <th height="セルの高さ(ピクセル数)">文字列</th> <table border width="400" aligh="center"> <caption>文字列</caption> <tr><th>文字列</th><th>文字列</th><tr> <tr><td height=70>文字列</td><td>文字列</td></tr> <tr><td>文字列</td><td>文字列</td></tr> <bottom>文字列</bottom> </table>
<td rowspan="(結合する)セル数">文字列</td> <th rowspan="(結合する)セル数">文字列</th> <table border> <tr> <td rowspan="2">文字列</td> <td>文字列</td> </tr> <tr> <td>文字列</td> </tr> </table>
<td colspan="(結合する)セル数">文字列</td> <th colspan="(結合する)セル数">文字列</th> <table border> <tr><th colspan="2">文字列</th><tr> <tr><td>文字列</td><td>文字列</td></tr> <tr><td>文字列</td><td>文字列</td></tr> </table>
<table cellspacing="セルの間隔(ピクセル数)">表の中身</table> <table border cellspacing="8"> <tr><th>文字列</th><th>文字列</th><tr> <tr><td>文字列</td><td>文字列</td></tr> <tr><td>文字列</td><td>文字列</td></tr> </table> 指定しないと2ピクセル
<table cellpadding="セル内の余白(ピクセル数)">表の中身</table> <table border cellpadding="10"> <tr><th>文字列</th><th>文字列</th><tr> <tr><td>文字列</td><td>文字列</td></tr> <tr><td>文字列</td><td>文字列</td></tr> </table>
<table border="線の太さ(ピクセル数)">表の中身</table> <table border="10"> <tr><th>文字列</th><th>文字列</th><tr> <tr><td>文字列</td><td>文字列</td></tr> <tr><td>文字列</td><td>文字列</td></tr> </table> 「0」の場合枠線が表示されない
<td align="横位置(left,center,right)" valign="縦位置(top,middle,bottom)">セルの内容</td> <th align="横位置(left,center,right)" valign="縦位置(top,middle,bottom)">セルの内容</th> <tr align="横位置(left,center,right)" valign="縦位置(top,middle,bottom)">セルの内容</tr> <td bgcolor="色(名前またはコード)" >セルの内容</td> <th bgcolor="色(名前またはコード)" >セルの内容</th> <tr bgcolor="色(名前またはコード)" >セルの内容</tr> <table border> <tr bgcolor="#77ff55"> <th>文字列</th><th>文字列</th></tr> <tr> <td align="center" valign="top">文字列</td> <td>文字列 文字列</td></tr>
© Rakuten Group, Inc.
|